#include "Tour.h"
#include <stdio.h>

int main (int argc, char** argv)

{
	Stour* ptour;
	ptour=new Stour;
	Stype* ADRESSE_LISTE_TYPES;
	ADRESSE_LISTE_TYPES=new Stype;
	init_listetype (ADRESSE_LISTE_TYPES);
	init_tour(ptour, ADRESSE_LISTE_TYPES);
	int a, b, c, d, e, f, g;
	set_tour (ptour, 10, 4, 7);
	a=get_Xtour (ptour);
	b=get_Ytour (ptour);
	c=get_ptypenum (ptour);
	d=get_ptypevitesse (ptour);
	e=get_ptypeportee (ptour);
	f=get_ptypepuissance (ptour);
	g=get_ptypeprix (ptour);
	printf("%d,%d,%d,%d,%d,%d,%d\n",a,b,c,d,e,f,g);
	upgrade (ptour);
	a=get_Xtour (ptour);
	b=get_Ytour (ptour);
	c=get_ptypenum (ptour);
	d=get_ptypevitesse (ptour);
	e=get_ptypeportee (ptour);
	f=get_ptypepuissance (ptour);
	g=get_ptypeprix (ptour);
	printf("%d,%d,%d,%d,%d,%d,%d\n",a,b,c,d,e,f,g);
	vider_listetype (ADRESSE_LISTE_TYPES);
	delete ptour;
}
